package com.aia.ann.web.json;

import org.apache.log4j.Logger;

import com.aia.ann.domain.Smartinfo;
import com.aia.ann.service.ChiefService;
import com.cfh.util.Tools;
import com.opensymphony.xwork2.ActionSupport;

public class AnnSmartInfoJson extends ActionSupport {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = Logger.getLogger(AnnSmartInfoJson.class);
	private static final long serialVersionUID = 1L;
	private ChiefService chiefService;
	private String mobile;
	private String name;
	
	private Smartinfo smartinfo;//out parameter Start
	public void validate() {
	}

	public String execute() throws Exception {
		try {
			if (logger.isDebugEnabled()) {
				logger.debug("AnnCreateInsuJson - start"); //$NON-NLS-1$
			}
			setName(Tools.unescapeTwice(getName()));
			chiefService.selectAnnSmartInfoJson(this);

			if (logger.isDebugEnabled()) {
				logger.debug("AnnCreateInsuJson - end"); //$NON-NLS-1$
			}

			return Tools.smartReturn((ActionSupport) this);
		} catch (Exception e) {
			logger.error("Unknown Error:" + e, e);
			throw new RuntimeException(e);
		}
	}

	public void setChiefService(ChiefService chiefService) {
		this.chiefService = chiefService;
	}

	public ChiefService getChiefService() {
		return chiefService;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getMobile() {
		return mobile;
	}

	public void setSmartinfo(Smartinfo smartinfo) {
		this.smartinfo = smartinfo;
	}

	public Smartinfo getSmartinfo() {
		return smartinfo;
	}


}
